/**
 * @file	SimpleBLEPeripheral_Main.c
 * @author	chipsea
 * @brief	This file contains the main and callback functions for
 *			the Simple BLE Peripheral sample application.
 * @version	0.1
 * @date	2020-11-30
 * @copyright Copyright (c) 2020, CHIPSEA Co., Ltd.
 * @note
 */
/**************************************************************************************************
 *                                           Includes
 **************************************************************************************************/
#include "sdk_config.h"
/* Hal Drivers */

/* OSAL */
#include "OSAL.h"
#include "OSAL_Tasks.h"
#include "OSAL_PwrMgr.h"
#include "osal_snv.h"
//#include "OnBoard.h"


/**************************************************************************************************
 * FUNCTIONS
 **************************************************************************************************/


/**************************************************************************************************
 * @fn          main
 *
 * @brief       Start of application.
 *
 * @param       none
 *
 * @return      none
 **************************************************************************************************
 */
/**
 * @fn		int app_main(void)
 * @brief	Start of application.
 * @param	none
 * @return	none
 */
int app_main(void)
{

  /* Initialize the operating system */
  osal_init_system();

  osal_pwrmgr_device( PWRMGR_BATTERY );

  /* Start OSAL */
  osal_start_system();	///< No Return from here

  return 0;
}

/*************************************************************************************************
**************************************************************************************************/
